<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: Arial, sans-serif;
            background-color: #f3f3f3;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: white;
            width: 80%;
            max-width: 1000px;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .left {
            width: 50%;
            padding: 20px;
        }
        .left h2 {
            font-size: 24px;
            color: #007bff;
            margin-bottom: 20px;
        }
        .left p {
            font-size: 16px;
            color: #555;
            line-height: 1.8;
        }
        .right {
            width: 50%;
            padding: 20px;
            border-left: 1px solid #ddd;
        }
        .login-title {
            font-size: 24px;
            color: #333;
            margin-bottom: 20px;
        }
        input[type="text"], input[type="password"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }
        button {
            width: 100%;
            padding: 12px;
            font-size: 16px;
            color: white;
            background-color: #007bff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        button:hover {
            background-color: #0056b3;
        }
        .options {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
        }
        .options a {
            font-size: 14px;
            color: #007bff;
            text-decoration: none;
        }
        .options a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 左侧内容 -->
        <div class="left">
            <h2>欢迎来到简易邮箱系统</h2>
            <p>
                软工小组 group1
            </p>
        </div>
        <!-- 右侧登录表单 -->
        <div class="right">
            <div class="login-title">登录到您的账户</div>
            <form action="/login" method="post">
                <input type="text" name="username" placeholder="用户名" required>
                <input type="password" name="password" placeholder="密码" required>
                <button type="submit">登录</button>
            </form>
            <div class="options">
                <a href="{{ url_for('main.register') }}">注册</a>
            </div>
        </div>
    </div>
</body>
</html>
